import { RouterView } from 'vue-router';

const routes = [
  {
    path: '/submit',
    component: RouterView,
    children: [
      {
        path: ':id',
        name: 'CardSubmit',
        component: () => import('@/views/card-submit/views/CardSubmit.vue'),
        meta: {
          title: '卡券提交',
          requiresBack: true,
          requiresAuth: true,
          hideFooter: true,
        },
      },
      {
        path: 'step',
        name: 'TransactionStep',
        component: () => import('@/views/card-submit/views/TransactionStep.vue'),
        meta: {
          title: '交易步骤',
          requiresBack: true,
          hideFooter: true,
        },
      },
      {
        path: 'faq',
        name: 'FaQuestion',
        component: () => import('@/views/card-submit/views/FaQuestion.vue'),
        meta: {
          title: '常见问题',
          requiresBack: true,
          hideFooter: true,
        },
      },
    ],
  },
  {
    path: '/recovery',
    component: RouterView,
    children: [
      {
        path: '',
        name: 'RecoveryPage',
        component: () => import('@/views/card-submit/views/RecoveryPage.vue'),
        meta: {
          title: '卖卡',
          hideNavBar: true,
        },
      },
    ],
  },
];

export default routes;
